<div class="contain">
    <div class="path">
        <?php echo _LB_CURRENT_PATH ;
        	echo '<a href=" '. URL .'trang-chu"> ' . _LB_HOME_PATH . '</a> ' . _IMAGE_ARROR_PATH .
        		'<span class="page_current"> '. _LB_LOGIN_PATH . '</span>';
        ?>
    </div>
    <script type="text/javascript">
    	function validate(){
    		var user_name 		= $('#txt_user_name');
    		var user_password 	= $('#txt_user_password');
    		if ( isEmptyTextBox( user_name , '<?php echo _ERROR_MSG_ACCOUNT_NAME_NOT_EMPTY; ?>' ) ){
    			return false;
    		}
    		if ( isEmptyTextBox( user_password , '<?php echo _ERROR_MSG_ACCOUNT_PASS_NOT_EMPTY; ?>' ) ){
    			return false;
    		}

    		$('#frm_login').submit();
    	}	
    </script>
    <div class="login_center">
    	<?php 
    		if ( isset($_SESSION['user_name']) && $_SESSION['user_name'] ){
    			if ( isset($_SESSION['user_name']) && $_SESSION['user_name'] )
					redir(URL.'?a=ACC&acc=USER&user=HOME');
    		}
    		else{
    	?>
		<form action="" method="post" enctype="multipart/form-data" id = "frm_login">
			<input type="hidden" name="li" value="T">
			
			<div class="legend">
				<img class="account" src="lib/images/account.png"><br/><br/>
				<?php
					if (isset($_SESSION['error_login']) && $_SESSION['error_login'])
						echo '<div class="error">'.$_SESSION['error_login'].'</div>';
				?>
				<div>
					<div class="left" style="padding-top:5px">
						<div class="left w70 login_title"><?php echo _LB_ACCOUNT; ?></div>
						<input class="input" type="text" style="width:200px" name="txt_user_name" id="txt_user_name" >
					</div>
				</div>
				<div class="clear">&nbsp;</div>
				<div>
					<div class="left w70 login_title "><?php echo _LB_PASSWORD; ?></div>
					<div class="left" style="padding-top:5px">
						<input class="input" type="password" style="width:200px" name="txt_user_password" id="txt_user_password">
					</div>
				</div>
				<div class="clear">&nbsp;</div>
				<div class="buttons" align="center">
			    	<button class="acction blue" onclick="validate();return false;">
			    		<span class="label">&nbsp;&nbsp;&nbsp;<?php echo _LB_LOGIN;?>&nbsp;&nbsp;&nbsp;</span>
			    	</button>
			    </div>
				<br/>
			</div>
		</form>
		<?php
			}
		?>
	</div>
	
</div>
